package logger

import "github.com/op/go-logging"

var loggers = make(map[string]*logging.Logger)

func GetLogger(module string) *logging.Logger{
	if logger,ok := loggers[module]; ok {
		return logger
	} else {
		logger = logging.MustGetLogger(module)
		loggers[module] = logger
		return logger
	}
}